home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 684 / 684.xpi / chrome / fireftp.jar / content / password2.xul < prev    next >
Extensible Markup Language  |  2007-04-19  |  1KB  |  36 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/global.css"   type="text/css"?>
  4. <?xml-stylesheet href="chrome://fireftp/skin/fireftp.css" type="text/css"?>
  5.  
  6. <!DOCTYPE dialog SYSTEM "chrome://fireftp/locale/password2.dtd">
  7. <dialog id             = "passwordPrompt2"
  8.         title          = "&title;"
  9.         width          = "275"
  10.         height         = "150"
  11.         xmlns          = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  12.         persist        = "screenX screenY width height"
  13.         onload         = "init(event)"
  14.         buttons        = "accept, cancel"
  15.         ondialogaccept = "doOK()">
  16.  
  17.   <script type="application/x-javascript" src="chrome://fireftp/content/js/etc/common.js"/>
  18.   <script>
  19.     <![CDATA[
  20.       function init(aEvent) {
  21.         $('password').focus();
  22.       }
  23.  
  24.       function doOK() {
  25.         window.arguments[0].password  = $('password').value;
  26.         window.arguments[0].returnVal = true;
  27.         return true;
  28.       }
  29.     ]]>
  30.   </script>
  31.  
  32.   <label value="&enterPassword;" accesskey="&password.access;" control="password"/>
  33.   <textbox id="password" width="200" type="password"/>
  34.  
  35. </dialog>
  36.